package com.wx.bignum;

import java.math.BigDecimal;

/**
 * @Author : 佩萁
 * Description :
 * @Create : 2023/7/24 - 18:20
 */
public class BigDecimal_ {
    public static void main(String[] args) {
        BigDecimal bigDecimal = new BigDecimal("19999999999999999999999999999999999999999");
        BigDecimal bigDecimal2 = new BigDecimal("3");
        System.out.println(bigDecimal.add(bigDecimal2));
        System.out.println(bigDecimal.subtract(bigDecimal2));
        System.out.println(bigDecimal.multiply(bigDecimal2));
        System.out.println(bigDecimal.divide(bigDecimal2,BigDecimal.ROUND_CEILING));
    }
}
